package com.sample.listener;

import com.i360day.redis.annotation.RedisExpireListener;
import com.i360day.redis.annotation.RedisKeyExpireListener;
import com.i360day.redis.annotation.RedisKeyListener;
import com.i360day.redis.listener.RedisMessageListenerAdapterSupport;
import com.i360day.redis.listener.keyexpire.RedisKeyExpireListenerAdapter;
import com.sample.listener.event.TestEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @program: spring-redis
 * @description:
 * @author: liju.z
 * @create: 2021-08-01 16:20
 **/
@Component
@RedisKeyListener(key = "asgasdgsh")
@RedisKeyExpireListener(value = "asgasdgsh")
public class SampleListener extends RedisMessageListenerAdapterSupport<String> implements ApplicationListener<TestEvent>, RedisKeyExpireListenerAdapter {

    @Override
    public void handleMessage(String message) {

    }

    @Override
    public void onApplicationEvent(TestEvent event) {

    }

    @Override
    public void keyExpireHandle(String key) {

    }
}
